package com.itheima.stock.exception;

import com.itheima.stock.enums.Code;
import lombok.Getter;

/**
 * @author: zyx
 * @created: 2025-11-07-08:55
 * @description: 自定义异常类
 */
@Getter
public class StockException extends RuntimeException {
    private Code code;

    public StockException(Code code) {
        super(code.getMsg());
        this.code = code;
    }
}
